
<?
include_once ("_data.php");

  /* Basic select and display contents from table */
 // Connects to your Database 
 
 $data = mysql_query("SELECT * FROM blog") 
 or die(mysql_error()); 
 
 Print "<div>"; 
 while($info = mysql_fetch_array( $data )) 
 { 
 Print "<tr>"; 
 Print "<h2>Title:</h2> <p>".$info['title'] . "</p> "; 
 Print "<h2>Content:</h2> <p>".$info['content'] . " </p></p>"; 
 Print "<h2>Date:</h2> <p>".$info['date'] . " </p></p>"; 
 Print "<br>";
 Print"</br>";

 } 
 Print "</div>"; 
 
mysql_close ($conn);
?>

					
						
         